﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Создать запись
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Создать запись</h2>
    <br />
    <br />
    <center><fieldset>
    <legend>Подтвердите информацию</legend>
    <%using (Html.BeginForm())
      { %>
      <table id="maintable">
      <tr>
      <th><%:Html.Label("ФИО") %></th>
      <td><%:(ViewData["Client"] as ElectronicRecords.Models.Clients).Firstname + " " + (ViewData["Client"] as ElectronicRecords.Models.Clients).Lastname%></td>
      </tr>
      <tr>
      <th><%:Html.Label("Дата посещения") %></th>
      <td><%:((DateTime)ViewData["date"]).ToShortDateString() %></td>
      </tr>
       <tr>
      <th><%:Html.Label("Время записи") %></th>
      <td><%:((DateTime)ViewData["time"]).ToShortTimeString()%></td>
      </tr>
      <tr>
      <th><%:Html.Label("Процедура") %></th>
      <td>
      <%:((ElectronicRecords.Models.Procedurs)ViewData["proc"]).Name%></td>
      </tr>
      <tr>
      <th><%:Html.Label("Специалист") %></th>
      <td><%:(ViewData["spec"] as ElectronicRecords.Models.Specialists).Firstname + " " + (ViewData["spec"] as ElectronicRecords.Models.Specialists).Lastname%></td>
      </tr>
      <tr>
      <td>
       <input type="hidden" name="client" value="<%=(ViewData["Client"] as ElectronicRecords.Models.Clients).ID_Client %>" />
       <input type="hidden" name="date" value="<%=ViewData["date"] %>" />
       <input type="hidden" name="time" value="<%=ViewData["time"]%>" />
       <input type="hidden" name="proc" value="<%=((ElectronicRecords.Models.Procedurs)ViewData["proc"]).ID_Procedure %>" />
       <input type="hidden" name="spec" value="<%=((ElectronicRecords.Models.Specialists)ViewData["spec"]).ID_Specialist %>" />
       <input type="hidden" name="confirm" value="1" />
      </td>
      </tr>
      <tr><td></td><td><input type="submit" value="Создать запись" class="g-button" /></td></tr>
      </table>
      
    <%} %>
    </fieldset></center>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
